from rest_framework import serializers
from django.contrib.auth.models import Group
class GroupsSerializer(serializers.ModelSerializer):
    class Meta:
        # 指定模型类
        model= Group
        # 指定字段
        fields='__all__'